
/*
 * GET home page.
 */

exports.index = function(req, res, next){
  //如果有多个值，只在一次渲染，不能像smarty多次assign
  res.render('index', { 
  	title: '微电影网站', 
  	time_str :  new Date(). toString(),
  	movies:[{
  		title: '速度与激情7',
  		poster:"/images/jj.jpeg",
  		id:1,
  		source:"http://v.youku.com/v_show/id_XODg0NjUzMTIw.html",
  	},{
  		title: '速度与激情7',
  		id:2,
  		poster:"/images/jj.jpeg",
  		source:"http://v.youku.com/v_show/id_XODg0NjUzMTIw.html",
  	},{
  		title: '速度与激情7',
  		id:2,
  		poster:"/images/jj.jpeg",
  		source:"http://v.youku.com/v_show/id_XODg0NjUzMTIw.html",
  	},{
  		title: '速度与激情7',
  		id:2,
  		poster:"/images/jj.jpeg",
  		source:"http://v.youku.com/v_show/id_XODg0NjUzMTIw.html",
  	},]


  });
};